package com.csun.dsms.model.domain;

import com.csun.dsms.comment.core.mybatis.BaseEntity;
import com.csun.dsms.model.vo.project.ProjectVo;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import javax.persistence.*;

@Data
@Table(name = "dsms_record")
public class DsmsRecord extends BaseEntity {

    /**
     * 单位ID
     */
    @Column(name = "unit_id")
    private Long unitId;

    /**
     * 单位名称
     */
    @Column(name = "unit_name")
    private String unitName;

    /**
     * 服务公司ID
     */
    @Column(name = "company_id")
    private Long companyId;

    /**
     * 服务公司名称
     */
    @Column(name = "company_name")
    private String companyName;

    /**
     * 服务人员ID
     */
    @Column(name = "staff_id")
    private Long staffId;

    /**
     * 服务人员姓名
     */
    @Column(name = "staff_name")
    private String staffName;

    /**
     * 服务项目id
     */
    @Column(name = "project_id")
    private Long projectId;

    @Column(name = "project_name")
    private String projectName;

    /**
     * 自理能力 1-全失能 2-半失能 3-全自理
     */
    @Column(name = "self_care_ability")
    private Integer selfCareAbility;

    /**
     * 网格ID
     */
    @Column(name = "area_id")
    private Long areaId;

    /**
     * 网格名称
     */
    @Column(name = "area_name")
    private String areaName;

    /**
     * 特困人员ID
     */
    @Column(name = "poor_id")
    private Long poorId;

    /**
     * 特困人员姓名
     */
    @Column(name = "poor_name")
    private String poorName;

    /**
     * 特困人员姓名
     */
    @Column(name = "poor_head_pic")
    private String poorHeadPic;

    /**
     * 特困人员地址
     */
    @Column(name = "poor_address")
    private String poorAddress;

    /**
     * 特困人员年龄
     */
    @Column(name = "poor_age")
    private Integer poorAge;

    /**
     * 服务前照片,多张用;分割
     */
    @Column(name = "service_pic_before")
    private String servicePicBefore;

    /**
     * 服务后照片,多张用;分割
     */
    @Column(name = "service_pic_after")
    private String servicePicAfter;

    /**
     * 服务评价
     */
    @Column(name = "service_evaluate")
    private String serviceEvaluate;

    /**
     * 服务金额
     */
    @Column(name = "service_price")
    private BigDecimal servicePrice;

    /**
     * 实际金额
     */
    @Column(name = "real_amount")
    private BigDecimal realAmount;

    /**
     * 服务时间
     */
    @Column(name = "service_time")
    private String serviceTime;

    /**
     * 开始服务时间
     */
    @Column(name = "start_service_time")
    private String startServiceTime;

    /**
     * 结束服务时间
     */
    @Column(name = "end_service_time")
    private String endServiceTime;

    /**
     * 服务计划开始时间
     */
    @Column(name = "service_start_time")
    private String serviceStartTime;

    /**
     * 服务计划结束时间
     */
    @Column(name = "service_end_time")
    private String serviceEndTime;

    /**
     * 状态 1-待办 2-已办 3-逾期 4-无效 5-进行中
     */
    private Integer status;

    /**
     * 审核状态0—待审批 1-审批通过 2-审批不通过
     */
    @Column(name = "audit_status")
    private Integer auditStatus;

    /**
     * 服务类型0-系统生成 1-政府提交 2-服务人员提交
     */
    @Column(name = "service_type")
    private Integer serviceType;

    /**
     * 服务时长（小时）
     */
    @Column(name = "service_duration")
    private BigDecimal serviceDuration;

    /**
     * 备注
     */
    private String remark;

    /**
     * 原因
     */
    private String reason;

    /**
     * 服务标准
     */
    @Column(name = "project_content")
    private String projectContent;

    /**
     * 服务评价
     */
    @Column(name = "company_evaluation")
    private Integer companyEvaluation;

    /**
     * 是否多人服务0-否 1-是
     */
    @Column(name = "is_many")
    private Integer isMany;

    /**
     * 是否多人服务0-否 1-是
     */
    @Column(name = "other_staff_name")
    private String otherStaffName;

    @Transient
    private List<ProjectVo> projectVos;

}